package com.panopset;

/**
 *
 * Global numbers that may be updated if necessary.
 *
 * @author Karl Dinwiddie
 *
 */
public final class Numbers {

    /**
     * int values.
     */
    public enum Integers {

        /**
         * Buffer size is 4096.
         */
        BUFFER_SIZE(4096),

        /**
         * Connect timeout default is 25000.
         */
        CONNECT_TIMEOUT(25000),

        /**
         * Default width is 800.
         */
        DEFAULT_WIDTH(800),

        /**
         * Default height is 600.
         */
        DEFAULT_HEIGHT(600),

        /**
         * Default dialog width is 600.
         */
        DEFAULT_DIALOG_WIDTH(600),

        /**
         * Default dialog height is 80.
         */
        DEFAULT_DIALOG_HEIGHT(80),

        /**
         * Default text field width is 20.
         */
        DEFAULT_TEXT_FIELD_WIDTH(20),

        /**
         * 250 milliseconds.
         */
        QUARTER_SECOND(250),

        /**
         * Minimum Java version is currently set at 6.
         */
        MIN_JAVA_VERS(6);

        /**
         * @param defaultValue
         *            Default value.
         */
        private Integers(final int defaultValue) {
            setValue(defaultValue);
        }

        @Override
        public String toString() {
            return "" + getValue();
        }

        /**
         * Value.
         */
        private int value;

        /**
         * @return Value.
         */
        public int getValue() {
            return value;
        }

        /**
         * @param newValue
         *            New value.
         */
        public void setValue(final int newValue) {
            value = newValue;
        }
    }

}
